package com.ap.core.domain;

import org.hibernate.annotations.TypeDef;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_TRANSACTION_CHANNEL")
@AttributeOverride(name = "id",column = @Column(name = "TRANSACTION_CHANNEL_CODE"))
@TypeDef(name = "id",  typeClass = String.class)
public class TransactionChannel extends Identifiable<String>{

	private static final long serialVersionUID = 8339070221409552886L;

	private TransactionChannel(){
		
	}
	
	@Column(name = "CHANNEL_NAME")
    private String channelName;

	@Column(name = "CHANNEL_DESCRIPTION")
    private String channelDescription;

    public String getChannelDescription() {
        return channelDescription;
    }

    public String getChannelName() {
        return channelName;
    }
}
